package com.rabbiter.oes.mapper;

import com.rabbiter.oes.entity.Banks;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BanksMapper {

    //全部查询
    List<Banks> selectAll();

    List<Banks> selectBySubjectLike(String subject);//模糊查询

    /**
     * 根据题库名称查询是否存在
     */

    Integer findBySubject(@Param("subject") String subject);

    /**
     * 插入新的题库名称
     */

    int save(@Param("subject") String subject);
}
